package com.ybk.zs.service.impl;

import com.ybk.zs.dao.ScoreCostMapper;
import com.ybk.zs.domain.ScoreCost;
import com.ybk.zs.domain.ScoreCostExample;
import com.ybk.zs.service.IScoreCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/9/8.
 */
@Service
public class ScoreCostService implements IScoreCostService{

    @Autowired(required = false)
    private ScoreCostMapper scoreCostMapper;
    @Override
    public int countByExample(ScoreCostExample example) {
        return this.scoreCostMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ScoreCostExample example) {
        return this.scoreCostMapper.deleteByExample(example);
    }

    @Override
    public int insert(ScoreCost record) {
        return this.scoreCostMapper.insert(record);
    }

    @Override
    public int insertSelective(ScoreCost record) {
        return this.scoreCostMapper.insertSelective(record);
    }

    @Override
    public List<ScoreCost> selectByExample(ScoreCostExample example) {
        return this.scoreCostMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(ScoreCost record, ScoreCostExample example) {
        return this.scoreCostMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(ScoreCost record, ScoreCostExample example) {
        return this.updateByExample(record,example);
    }
}
